<template>
  <view>
    <view :style="{height: statusBarHeight + 'px'}"></view>
    <view class="nav-bar-content">
      <!-- 你的导航栏内容 -->
    </view>
  </view>
</template>
<script setup>
import { ref, onMounted } from 'vue'
const statusBarHeight = ref(0)
onMounted(() => {
  statusBarHeight.value = uni.getSystemInfoSync().statusBarHeight || 0
  console.log(statusBarHeight.value)
})
</script>
